﻿using System.Collections.Generic;
using DapperWrapper;
using ZLWeb.WebApiEntity.EasyQuery;
using ZLWeb.WebApiEntity.EasyUse;
using ZLWeb.WebApiRepository.InterFace;

namespace ZLWeb.WebApiRepository
{
    public class AccOprInfoRepository : Respository<AccOprInfo>, IAccOprInfoRepository
    {
        public  IEnumerable<AccOprInfo> GetJfChanges(string openid)
        {
            AccOprInfo info = new AccOprInfo();
            var cardno = openid;
            var ctype = 2;
            var deldynosign = 0;
          

            var item = ExecuteProcWithTemptable(info, "pr_AccOprInfo_QueryJfChange", "#OprInfo", false, new { cardno, ctype, deldynosign });

            
            return item;
        }


        public IEnumerable<AccOprInfo> GetBalanceChanges(string openid)
        {
            AccOprInfo info = new AccOprInfo();
            var cardno = openid;
            var ctype = 2;
            var deldynosign = 0;
            var item = ExecuteProcWithTemptable(info, "pr_AccOprInfo_QueryBalanceChange", "#OprInfo", false, new { cardno, ctype, deldynosign });
            return item;
        }
    }
      
}